import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Word from '../view/Word'
import Search from '../view/Search'
import test2 from '../view/test2'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/allwords',
      name: 'Word',
      component: Word
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/test2',
      name: 'test2',
      component: test2
    }
  ]
})
